import _axios from './request'
// 登录api
function authorizations (data) {
  return _axios({
    url: '/app/v1_0/authorizations',
    method: 'post',
    data
  })
}
// 获取用户信息
function userProfile () {
  return _axios({
    url: '/app/v1_0/user/profile',
    needToken: true
  })
}
export { authorizations, userProfile }
